package wykop.analyze;

import wykop.page.WykopComment;

public abstract class NumericCommentFeature implements ICommentFeature {

	@Override
	public final String forComment(final WykopComment comment) {
		return String.valueOf(value(comment));
	}

	@Override
	public abstract String name();

	@Override
	public final String type() {
		return "NUMERIC";
	}

	protected abstract int value(WykopComment comment);

}
